/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package crystalllattincegenerator;

import java.util.ArrayList;
import java.util.Collection;

/**
 *
 * @author efma0714
 */
public class CrystallLattince {

    public CrystallLattince() {
        points = new ArrayList<>();
    }

    public CrystallLattince(ArrayList<Point> points) {
        this.points = points;
    }

    public CrystallLattince(CrystallLattince l) {
        this.points = l.getPoints();
    }
    
    
    
    
    private ArrayList<Point> points;

    /**
     * Get the value of points
     *
     * @return the value of points
     */
    public ArrayList<Point> getPoints() {
        return points;
    }

    /**
     * Set the value of points
     *
     * @param points new value of points
     */
    public void setPoints(ArrayList<Point> points) {
        this.points = points;
    }

    public int size() {
        return points.size();
    }

    public Object[] toArray() {
        return points.toArray();
    }

    public <T> T[] toArray(T[] a) {
        return points.toArray(a);
    }

    public Point get(int index) {
        return points.get(index);
    }

    public boolean add(Point e) {
        return points.add(e);
    }

    public void add(int index, Point element) {
        points.add(index, element);
    }

    public Point remove(int index) {
        return points.remove(index);
    }

    public boolean remove(Object o) {
        return points.remove(o);
    }

    public void clear() {
        points.clear();
    }

    public boolean addAll(Collection<? extends Point> c) {
        return points.addAll(c);
    }

    public boolean removeAll(Collection<?> c) {
        return points.removeAll(c);
    }
    
    

    
}
